<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Email will be sent from' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="fromName">
					<?php echo JText::_( 'Name' ); ?>:
				</label>
			</td>
			<td><?php echo $this->fromName;?><input type="text" name="fromName" value="<?php echo $this->fromName;?>" style="visibility: hidden"/>
			</td>
		</tr>
    	<tr>
			<td width="100" align="right" class="key">
				<label for="fromEmail">
					<?php echo JText::_( 'Email Address' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->fromEmail;?><input type="text" name="fromEmail" value="<?php echo $this->fromEmail;?>" style="visibility: hidden"/>
			</td>
		</tr>
        	<tr>
			<td width="100" align="right" class="key">
				<label for="fromEmail">
					<?php echo JText::_( 'Email Subject' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->subject;?><input type="text" name="subject" value="<?php echo $this->subject;?>" style="visibility: hidden"/>
			</td>
		</tr>
	</table>
	</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Newsletter to Send will be' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="Newsletter">
					<?php echo JText::_( 'Newsletter' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->lists;?>
			</td>
		</tr>
  
	</table>
	</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Newsletter Preview' ); ?></legend>
 

						<?php

                   
        echo $this->newsletterForPreviewBody->body;  
          		echo '<textarea id="body" name="body" style="visibility: hidden">';		
              echo $this->newsletterForPreviewBody->body;
              echo '</textarea>';
?>

        	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_spsNewsletter" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="sendNewsletter" />
</form>
